package view;

import controller.Controller;

public class GUI implements UI {
	private Controller controller;
	private double data[];
	
	@Override
	public void setController(Controller controller) {
		this.controller = controller;
		System.out.println("GUI says contoller updated!");
	}

	@Override
	public void startUI() {
		System.out.println("GUI says UI started!");
	}

	@Override
	public void updateData(double[] data) {
		this.data = new double[data.length];
		System.arraycopy(data, 0, this.data, 0, data.length);
		System.out.println("GUI says data updated!");
	}

	@Override
	public void closeUI() {
		System.out.println("GUI says UI closed!");
	}

}
